import request from "@/utils/request";

// 分页
export function coursePage(data) {
  return request({
    url: '/courses/page',
    method: 'post',
    data
  })
}

// 添加和修改部门信息
export function course_insert_edit(data) {
  return request({
    url: '/courses/insert/edit',
    method: 'post',
    data
  })
}

// 获取部门信息  id
export function course_one(id) {
  return request({
    url: '/courses/one/' + id,
    method: 'get',
  })
}


export function courseDelete(id) {
  return request({
    url: '/courses/remove/' + id,
    method: "get",
  })
}

export function courseList() {
  return request({
    url: '/courses/list',
    method: "get",
  })
}


